import axios from 'axios'
// import {HOST} from 'common/js/config'

export function getSong (id) {
  // const url = HOST + `/music/url?id=${id}`
  // https://api.imjad.cn/cloudmusic/?type=lyric&id=1430844784&br=128000
  const url = 'https://api.imjad.cn' + `/cloudmusic/?type=song&id=${id}` + '&br=128000'

  return axios.get(url)
}

export function getLyric (id) {
  // const url = HOST + `/lyric?id=${id}`
  const url = 'https://api.imjad.cn' + `/cloudmusic/?type=lyric&id=${id}` + '&br=128000'

  return axios.get(url)
}
